package io.renren.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.app.entity.MemberPurseEntity;

import java.util.Map;

/**
 * 会员钱包表
 *
 * @date 2022-04-20 22:37:44
 */
public interface MemberPurseService extends IService<MemberPurseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 新增用户钱包
     *
     * @param purse 钱包类
     * @return
     */
    public Integer addMemberPurse(MemberPurseEntity purse);

    /**
     * 编辑用户钱包
     *
     * @param purse 钱包类
     * @return
     */
    public Integer editMemberPurse(MemberPurseEntity purse);

    /**
     * 获取用户钱包
     *
     * @param userId 用户id
     * @return
     */
    public MemberPurseEntity queryUserPurse(Long userId);

}

